<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>
    <meta charset="utf-8">
    <title>账号列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link Rel="SHORTCUT ICON" href="/pc/login/img/logo1.png">
    <link rel="stylesheet" href="/pc/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/font_eolqem241z66flxr.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/news.css" media="all" />
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <div class="layui-inline">
        <form action="/admin/admin/index" method="get" class="layui-form">
            <div class="layui-input-inline">
                <select name="admin_id" class="layui-input search_input" lay-verify="" lay-search>
                    <option value="">请选择</option>
                    @if($admins)
                        @foreach($admins as $v)
                    <option value="{{$v['id']}}">{{$v['name']}}</option>
                        @endforeach
                    @endif
                </select> 
            </div>
            <button type="submit" class="layui-btn">查询</button>
        </form>
    </div>
    <div class="layui-inline">
        <a class="layui-btn linksAdd_btn" style="background-color:#5FB878">添加</a>
    </div>
</blockquote>
<div class="layui-form links_list">
    <table class="layui-table">        
        <thead>
        <tr>
            <th>账号</th>
            <th>联系人</th>
            <th>手机号</th>
            <th>角色</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
        @if($admins)
        @foreach($admins as $v)
        <tr>
            <td class="account">{{$v['account']}}</td>
            <td>{{$v['name']}}</td>
            <td>{{$v['mobile']}}</td>
            <td>{{$v['role_name']}}</td>
            <td><input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" @if($v['status']==1) checked @endif  lay-filter="login"></td>
            <td>
                <div class="layui-btn-group">
                    <a class="layui-btn layui-btn-mini links_edit" admin="{{$v['id']}}"><i class="iconfont icon-edit"></i> 编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-mini links_del" data-id="1"><i class="layui-icon"></i> 删除</a>   
                </div>
            </td>
        </tr>
        @endforeach
        @endif
        </tbody>
    </table>
</div>
<div id="page"></div>
<script type="text/javascript" src="/pc/layui/layui.js"></script>
<script type="text/javascript" src="/pc/admin/js/admin.js"></script>
</body>
</html>